//
//  RMMThridCommon.m
//  Romomo
//
//  Created by puman on 2017/4/21.
//  Copyright © 2017年 mazegong. All rights reserved.
//

#import "RMMThridCommon.h"
#import "UMMobClick/MobClick.h"
#import <UMSocialCore/UMSocialCore.h>

@implementation RMMThridCommon

+ (void)setUMTJ{
    UMConfigInstance.appKey = UMShareKey;
    UMConfigInstance.channelId = @"App Store";
    [MobClick startWithConfigure:UMConfigInstance];
    [MobClick setAppVersion:XcodeAppVersion];
    [[UMSocialManager defaultManager] openLog:YES];
}
+ (void)setGaoDeMapKey{
    [AMapServices sharedServices].apiKey = GaoDeMapKey;
}
+ (void)setUMShare{
    [[UMSocialManager defaultManager] setUmSocialAppkey:UMShareKey];
    [RMMThridCommon configUSharePlatforms];
}
+ (void)configUSharePlatforms{
    // 设置微信
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_QQ appKey:@"1105753280" appSecret:nil redirectURL:@""];
    //设置微信的appId和appKey
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_WechatSession appKey:@"wx2d2a0b4ce1b412a2" appSecret:AppSecret redirectURL:@"http://mobile.umeng.com/social"];
    //设置新浪的appId和appKey
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_Sina appKey:@"579107583" appSecret:@"ecbf8c1cb08e7dc70aac1479843dfa8d" redirectURL:@"http://sns.whalecloud.com/sina2/callback"];
}
@end
